<?php
/**
 * ExtSplitButton class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtSplitButton extends ExtButton
{
    /**
     * Gets the value of ExtJS arrowHandler property
     * @return Function 
     */
    public function getArrowHandler()
    {
    	return $this->getConfig("arrowhandler");
    }

    /**
     * Sets the value of ExtJS arrowHandler property
     * @param Function $value 
     */
    public function setArrowHandler($value)
    {
    	$this->setConfig("arrowhandler",$value);
    }

    /**
     * Gets the value of ExtJS arrowTooltip property
     * @return String 
     */
    public function getArrowTooltip()
    {
    	return $this->getConfig("arrowtooltip");
    }

    /**
     * Sets the value of ExtJS arrowTooltip property
     * @param String $value 
     */
    public function setArrowTooltip($value)
    {
    	$this->setConfig("arrowtooltip",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'arrowhandler' => 'arrowHandler',
            'arrowtooltip' => 'arrowTooltip'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'arrowclick' => array('sender','e')
        ));

        $this->jsconfigs = array_merge($this->jsconfigs,array(
            'arrowHandler' => true
        ));

        $this->setXType('splitbutton');
        $this->setXClass('Ext.SplitButton');
    }    
}
?>